package com.francisco.ets.modele;

import java.awt.Color;
import java.awt.Graphics;

import com.francisco.ets.util.Labo1Const;

public class Ligne extends Forme
{
	private int pointArriveX;
	private int pointArriveY;
	public Ligne() 
	{
		//super(Labo1Const.POSITION_INITIAL_X,Labo1Const.POSITION_INITIAL_Y);
		this.setCouleur(Color.green);
	}

	public Ligne(int nseq,int pointDepartX, int pointDepartY,int pointArriveX,int pointArriveY) 
	{
		super(nseq,pointDepartX, pointDepartY);
        this.pointArriveX=pointArriveX;
        this.pointArriveY=pointArriveY;
		this.setCouleur(Color.green);
	}

	@Override
	public void drawFigure(Graphics g)
	{
		g.setColor(this.getCouleur());
		g.drawLine(this.getPointDepartX(), this.getPointDepartY(), pointArriveX, pointArriveY);
		
	}

	public int getPointArriveX() {
		return pointArriveX;
	}

	public void setPointArriveX(int pointArriveX) {
		this.pointArriveX = pointArriveX;
	}

	public int getPointArriveY() {
		return pointArriveY;
	}

	public void setPointArriveY(int pointArriveY) {
		this.pointArriveY = pointArriveY;
	}
	



}
